<?php

/*@LICENSE@*/

require_once 'Clouseau/Genealogy.php';

class Clouseau_Genealogy_Classes extends Clouseau_Genealogy
{
	protected function _getAllChildren()
	{
		$a = get_declared_classes();
		
		if ($this->_bRemoveSelf===TRUE)
		{
			$aNew = array();
			$i = 0;
			for ($i=0, $iCount=count($a); $i<$iCount; ++$i)
			{
				if (substr($a[$i], 0, 9)!=='Clouseau_')
				{
					$aNew[] = $a[$i];
				}
			}
			$a = $aNew;
		}
		return $a;
	}

	protected function _getParentOf($sName)
	{
		return get_parent_class($sName);
	}
}

